Dim $UIStackedBarChart1$ As UIStackedBarChart
$UIStackedBarChart1$.Initialize(Me, "$UIStackedBarChart1$")
$UIStackedBarChart1$.AddToParent(Activity, 10dip, 10dip, 300dip, 200dip)
Dim points As List = Array("Q1", "Q2", "Q3", "Q4")
Dim values As List = Array(Array(30.0, 40.0, 50.0, 60.0), Array(10.0, 20.0, 15.0, 25.0))
' With many categories, swipe horizontally to inspect the full chart.
$UIStackedBarChart1$.setData(points, values)
	'Visible category gap; use -1 to restore the original automatic spacing.
	$UIStackedBarChart1$.BarSpacing = 5dip
$end$
